<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			{{$store.state.cs.count}}
			<up-button type="primary" text="cs123"></up-button>
			<text class="title" @click="to">Hello</text>
		</view>
	</view>
</template>

<script setup>
	const app = getApp();
	console.log(app,"app")
	import {useStore} from "vuex";
	const store = useStore();
	const to = ()=>{
		console.log(11,getApp())
		store.commit('cs/addCount');
		const common = uni.getStorageSync('common')
		console.log(common)
		// #ifdef MP-WEIXIN
		if(wx.eventBus){
			wx.eventBus.emit("cs",{cyj:'cyj'})
		}
		console.log(wx.globalData)
		// #endif
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}
	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
